﻿<!DOCTYPE html>
<html class="x-admin-sm">

<head>
<meta charset="UTF-8">
<title>欢迎页面</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
{include file="public/style" /}
<script type="text/javascript">
  $(document).ready(function(){
	layui.use('form', function() {
		var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功

		//……

		//但是，如果你的HTML是动态生成的，自动渲染就会失效
		//因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
		form.render();
	});
	uploadimg('.fileQueued','#filePicker',"input[name='thumb']");
  });
</script>
</head>
<body>
	<div class="layui-fluid">
		<div class="layui-row">
			<form class="layui-form" role="form" method="post" id="form-article-add" action="">
				<input type="hidden" name="id" value="{$Request.param.id}">
				<div class="layui-form-item">
					<label for="username" class="layui-form-label"><span class="x-red">*</span>等级名称：</label>
					<div class="layui-input-inline">
						<input class="layui-input" placeholder="" type="text" name="title" value="{$roleInfo.title}"  lay-verify="required">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="username" class="layui-form-label">图标：</label>
					<div class="layui-input-inline">
						<input type="hidden" name="thumb" id="thumb" value="{$roleInfo.thumb}" id="form-field-2" placeholder="" class="layui-input">
						<div id="uploader" class="wu-example">
							<div id="fileList" class="uploader-list"></div>
							<div id="filePicker">选择图片</div>
							<div class='fileQueued'>
								{notempty name="roleInfo.thumb"} <img src="{$roleInfo.thumb}" style="width: 150px;">{/notempty}
							</div>
						</div>
					</div>
				</div>				
				<div class="layui-form-item">
					<label for="username" class="layui-form-label"> <span class="x-red">*</span>押金：</label>
					<div class="layui-input-inline">
						<input class="layui-input" placeholder="" type="text" name="deposit" value="{$roleInfo.deposit}"  lay-verify="required">
					</div>					
				</div>
				<div class="layui-form-item">
					<label for="username" class="layui-form-label"> <span class="x-red">*</span>每日付款限额：</label>
					<div class="layui-input-inline">
						<input class="layui-input" placeholder="" type="text" name="daily_pay" value="{$roleInfo.daily_pay}"  lay-verify="required">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="username" class="layui-form-label"> <span class="x-red">*</span>每月付款限额：</label>
					<div class="layui-input-inline">
						<input class="layui-input" placeholder="" type="text" name="month_pay" value="{$roleInfo.month_pay}"  lay-verify="required">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="username" class="layui-form-label"> <span class="x-red">*</span>层级：</label>
					<div class="layui-input-inline">
						<select name="sort_id">
					         <option value="1" {eq name="roleInfo.sort_id" value="1"}selected="selected"{/eq}>1级</option>
					         <option value="2" {eq name="roleInfo.sort_id" value="2"}selected="selected"{/eq}>2级</option>
					         <option value="3" {eq name="roleInfo.sort_id" value="3"}selected="selected"{/eq}>3级</option>
					         <option value="4" {eq name="roleInfo.sort_id" value="4"}selected="selected"{/eq}>4级</option>
					         <option value="5" {eq name="roleInfo.sort_id" value="5"}selected="selected"{/eq}>5级</option>
					         <option value="6" {eq name="roleInfo.sort_id" value="6"}selected="selected"{/eq}>6级</option>
					     </select>					     
					</div>
					<div class="layui-form-mid layui-word-aux">数字越大级别越高</div>				
				</div>			
				<div class="layui-form-item">
					<label for="username" class="layui-form-label"> <span class="x-red">*</span>状态：</label>
					<div class="layui-input-block">
					      <input type="radio" name="status" value="1" title="显示" {eq name="roleInfo.status" value="1"}checked=""{/eq} {empty name="roleInfo.status"}checked=""{/empty}>
					      <input type="radio" name="status" value="0" title="隐藏" {eq name="roleInfo.status" value="0"}checked=""{/eq}>
					</div>
				</div>
				<div class="layui-form-item">
					<label for="L_repass" class="layui-form-label"> </label>
					<button class="layui-btn" lay-filter="add" lay-submit=""> 保 存 </button>
				</div>

			</form>

		</div>
	</div>

</body>
</html>
